package cn.tedu.web.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 【订单细目表】
 * </p>
 *
 * @author issen
 * @since 2021-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ec_order_detail")
@ApiModel(value="OrderDetail对象", description="【订单细目表】")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "该订单细目所属的订单，参考 order 表")
    private Integer oid;

    @ApiModelProperty(value = "购买的商品，参考 goods 表")
    private Integer gid;

    @ApiModelProperty(value = "购买的商品的名称")
    private String name;

    @ApiModelProperty(value = "购买的商品的单价")
    private BigDecimal price;

    @ApiModelProperty(value = "购买的商品的数量")
    private Integer count;

    @ApiModelProperty(value = "商品的图片地址")
    private String image;


}